package com.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TUsers entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_users", schema = "")
public class TUsers implements java.io.Serializable {

	private static final long serialVersionUID = -8138979133987701219L;
	private String id;
	private String username;
	private String pwd;
	private Date creatdatetime;
	private Date modifydatetime;

	// Constructors

	/** default constructor */
	public TUsers() {
	}

	/** minimal constructor */
	public TUsers(String id, String username, String pwd, Date creatdatetime) {
		this.id = id;
		this.username = username;
		this.pwd = pwd;
		this.creatdatetime = creatdatetime;
	}

	/** full constructor */
	public TUsers(String id, String username, String pwd, Date creatdatetime, Date modifydatetime) {
		this.id = id;
		this.username = username;
		this.pwd = pwd;
		this.creatdatetime = creatdatetime;
		this.modifydatetime = modifydatetime;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "username", nullable = false)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "pwd", nullable = false)
	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "creatdatetime", length = 10)
	public Date getCreatdatetime() {
		return this.creatdatetime;
	}

	public void setCreatdatetime(Date creatdatetime) {
		this.creatdatetime = creatdatetime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "modifydatetime", length = 10)
	public Date getModifydatetime() {
		return this.modifydatetime;
	}

	public void setModifydatetime(Date modifydatetime) {
		this.modifydatetime = modifydatetime;
	}

}